<?php
class service_type{
	const PRODUCT = 1;
	const NEWS = 2;
	const PAGE = 3;
	const CATEGORY = 4;
	const BANNER = 5;
	const OTHER = 6;
	const SLIDE = 7;
	const MENU = 8;
	const LINKS = 9;
	const COMPANY = 10;
	static public function getName($type){
		$names = array(
			'1' => '产品',
			'2' => '文章',
			'3' => '单页',
			'4' => '分类',
			'5' => 'banner',
			'6' => '其他',
			'7' => '幻灯片',
			'8' => '菜单',
			'9' => '友情链接',
			'10' => '公司信息'
			);
		return $names[$type];
	}
}
?>
